package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 转校
 * </p>
 *
 * @author hpiggy
 * @since 2024-04-06
 */
@Data
@TableName("change_school")
@ApiModel(value = "ChangeSchool对象", description = "转校")
public class ChangeSchool implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("编号（随机生成18位）")
    private String receiptNo;

    @ApiModelProperty("转入校区id")
    private Long inSchoolId;

    @ApiModelProperty("0否，1是【按教师、校长】")
    private Integer isChangeTeacher;

    @ApiModelProperty("转出类型：0部分转出，1全部转出【按教师、校长】")
    private Integer changeType;

    @ApiModelProperty("部分转出时开始时间【按教师、校长】")
    private LocalDate startDate;

    @ApiModelProperty("1按学员，2按教师，3按校长")
    private Integer type;

    @ApiModelProperty("0提交申请，1确认,2拒绝【手机端校长申请使用】")
    private Integer status;

    @ApiModelProperty("拒绝原因")
    private String content;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableLogic
    private Integer deleted;

    private Long affirmTeacherId;
}
